package com.ccy.product.productconsumer;

public class Test {

    public static void main(String[] args) {
        Stock stock = new Stock();
        Product product = new Product("生产者",stock);
        Consumer con = new Consumer("消费者", stock);

        product.start();
        con.start();
    }
}
